//package com.budwk.app.waterquality.services.impl;
//
//import com.budwk.app.waterquality.vo.WaterReportFormQueryVo;
//import com.budwk.starter.common.page.Pagination;
//import com.budwk.starter.database.service.BaseServiceImpl;
//import com.budwk.app.waterquality.models.WaterReportForm;
//import com.budwk.app.waterquality.services.WaterReportFormService;
//import org.apache.commons.lang3.StringUtils;
//import org.nutz.dao.Cnd;
//import org.nutz.dao.Dao;
//import org.nutz.dao.util.cri.SqlExpressionGroup;
//import org.nutz.ioc.loader.annotation.IocBean;
//
//@IocBean(args = {"refer:dao"})
//public class WaterReportFormServiceImpl extends BaseServiceImpl<WaterReportForm> implements WaterReportFormService {
//    public WaterReportFormServiceImpl(Dao dao) {
//        super(dao);
//    }
//
//    @Override
//    public Pagination listByPage(WaterReportFormQueryVo reqVo) {
//        Cnd cnd = Cnd.NEW();
//        SqlExpressionGroup where = cnd.where();
//        if (StringUtils.isNotEmpty(reqVo.getReportType())) {
//            where.andEquals(WaterReportForm::getReportType, reqVo.getReportType());
//        }
//        return this.listPage(reqVo.getPageNo(), reqVo.getPageSize(), cnd);
//    }
//}
